package cn.tedu.springbootdemo.config;

//import com.alibaba.druid.pool.DruidDataSource;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class DruidConfig {
//    @Bean
//    public DataSource dataSource(@Value("${spring.datasource.url}") String url
//            , @Value("${spring.datasource.username}") String username
//            , @Value("${spring.datasource.password}") String password){
//        DruidDataSource dataSource=new DruidDataSource();
//        dataSource.setUrl(url);
//        dataSource.setUsername(username);
//        dataSource.setPassword(password);
//        return dataSource;
//    }
}
